public class Token
{
    private TokenId id;
    private String info;

    public Token(TokenId id, String info)
    {
        this.id = id;
        this.info = info;
    }

    public TokenId GetId()
    {
        return id;
    }

    public String GetInfo()
    {
        return info;
    }

    public String toString()
    {
        String str = super.toString() + '\n';
        str += "Id: " + id + '\n';
        str += "Info: " + info + '\n';
        return str;
    }
}
